package com.base.utils;

import javax.servlet.http.HttpServletResponse;

public class CorsUtil {

    public static HttpServletResponse responseCors(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Access-Control-Allow-Methods", "POST");
        response.setHeader("Access-Control-Allow-Headers", "x-requested-with,content-type,Authorization");
        response.addHeader("Access-Control-Allow-Headers", "Access-Control-Allow-Headers, SDB-Authorization" +
                "Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers");

        return  response;
    }
}
